---
title: clsAssignmentManager.RunAssignmentProcess
summary: Run the attorney-assignment batch inside explicit transaction boundaries.
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
operation_id: run-assignment-process
trigger: A user or job starts the assignment process.
---

# clsAssignmentManager.RunAssignmentProcess

Run the attorney-assignment batch inside explicit transaction boundaries.

| Field | Value |
| --- | --- |
| **Operation ID** | run-assignment-process |
| **Trigger** | A user or job starts the assignment process. |
| **Inputs** | Current manager state, current claim/case context, and workflow-specific parameters or collections. |
| **Outputs** | Updated collections, messages, or side effects specific to the operation. |
| **Primary components** | `clsAssignmentManager.RunAssignmentProcess` |
| **Entry point** | `SAIF.Application.Claim.Legal\LegalNet\clsAssignmentManager.vb` |

## Steps

1. Call `OnTransactionStart`.
2. Run `clsAssignmentProcess`.
3. In a `Finally` block, call `OnTransactionStop(WriteResult)` and rethrow failures.
4. Evaluate `Testing` so non-production runs stay in test mode.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
  Start([Trigger]) --> S1[Load current state]
  S1 --> S2[Apply workflow rules]
  S2 --> D{"Validation or security<br>issue?"}
  D -->|Yes| EndErr(["Return message or block<br>action"])
  D -->|No| EndOk(["Return updated workflow<br>state"])
```

## Failure and edge-case behavior
- Errors are rethrown after transactional cleanup so callers can detect failure.

## Related documentation
- [Index](../index.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Security and authorization](../security-authorization.md)
- [Database tables](../database-tables.md)
- [SQL catalog](../sql/index.md)
- [Procedures](../procedures/index.md)
- [API reference](../api/index.md)

## Sources
- SAIF.Application.Claim.Legal\LegalNet\clsAssignmentManager.vb
